﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Scheduler.Model.Models
{
    [Comment("任务计划明细")]
    public class TaskScheduleDetail
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        [Comment("开始时间")]
        public DateTime? BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [Comment("结束时间")]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 任务计划明细描述
        /// </summary>
        [Comment("任务计划明细描述")]
        [Required(ErrorMessage = "任务计划明细描述不能为空")]
        [StringLength(500, ErrorMessage = "任务计划明细描述长度不能超过500个字符")]
        public string? Description { get; set; }
        /// <summary>
        /// 任务总分钟数
        /// </summary>
        [Comment("任务总分钟数")]
        public int Total { get; set; }
        public long TaskId { get; set; }
    }
}
